#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>
using namespace std;
class W
{
public:
	W()
		:a(1)
		,b(1)
	{
		cout << "W()" << endl;
	}
	W(const W& d)
	{
		a = d.a;
		b = d.b;
		cout << "W(const W& d)" << endl;
	}
	~W()
	{
		cout << "~W()" << endl;
	}
private:
	int a;
	int b;
};
W f()
{
	W ret;
	return ret;
}
int main()
{
	//f().print;
	W d;
	W d1 = d;
	return 0;
}